import Vue from 'vue'
import App from './App.vue'
import router from './router'
// element ui
import ElementUi from 'element-ui'
import '../node_modules/element-ui/lib/theme-chalk/index.css'
// 公用样式
import './assets/css/style.css'

import VueAwesomeSwiper from 'vue-awesome-swiper'

import 'swiper/swiper-bundle.css'

import axios from 'axios'
axios.defaults.baseURL = ''
// 拦截器
axios.interceptors.request.use(config => {
  config.headers.Authorization = window.sessionStorage.getItem('token')
  return config
})
Vue.prototype.$HTTP = axios

Vue.use(VueAwesomeSwiper)
Vue.use(ElementUi)

Vue.config.productionTip = false

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
